<template>
	<!-- 歌单分类块 页面代码渲染 -->
	  <view class="song-list">
	    <view class="tit-bar">
	      推荐歌单2
	      <view class="more fr">歌单广场</view>
	    </view>
	    <view class="scroll-view">
	      <view class="item" v-for="(item, index) in recommendSongs" :key="index">
	        <image class="img" :src="item.imgPath"></image>
	        <view class="desc ellipsis">{{ item.name }}</view>
	        <view class="count">点播: {{ item.playCount }}</view>
	      </view>
	    </view>
	  </view>
</template>

<script>
	export default {
		props:{
			recommendSongs:{
				type: Array,
				default: ()=>[]
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.song-list{
		width: 100%;
		height: 500rpx;
		.scroll-view{
			width: 100%;
			.item{
				float: left;
				width: 31%;
				height: 300rpx;
				margin: 1%;
				.img{
					width: 100%;
					height: 220rpx;
				}
			}
			
		}
		
		
	}
	.tit-bar{
		height: 80rpx;
		line-height: 80rpx;
		padding: 0 16rpx;
	}
	.fr{
		float: right;
	}
	.count{
		font-size: 24rpx;
	}

</style>
